package com.defect.service.statisticsService.statisticsServiceImpl;

import com.defect.mapper.ProjectMapper;
import com.defect.po.Project;
import com.defect.service.statisticsService.SProjectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SProjectServiceImpl implements SProjectService {
    @Resource
    private ProjectMapper projectMapper;
    /**
     * 查询所有项目
     * @return 返回所有项目的集合
     * @throws Exception
     */
    @Override
    public List<Project> selectProject() throws Exception {
        return projectMapper.selectByExample(null);
    }
}
